package com.whc.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 线程池属性
 *
 * @author angaoen
 */
@ConfigurationProperties(prefix = "gulimall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {

    /**
     * 核心线程池大小
     */
    private Integer corePoolSize;

    /**
     * 最大线程池大小
     */
    private Integer maxPoolSize;

    /**
     * 存活时间
     */
    private Long keepAliveSeconds;
}
